package com.IR.shop.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class MusicExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MusicExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andMusicidIsNull() {
            addCriterion("musicid is null");
            return (Criteria) this;
        }

        public Criteria andMusicidIsNotNull() {
            addCriterion("musicid is not null");
            return (Criteria) this;
        }

        public Criteria andMusicidEqualTo(Integer value) {
            addCriterion("musicid =", value, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidNotEqualTo(Integer value) {
            addCriterion("musicid <>", value, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidGreaterThan(Integer value) {
            addCriterion("musicid >", value, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidGreaterThanOrEqualTo(Integer value) {
            addCriterion("musicid >=", value, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidLessThan(Integer value) {
            addCriterion("musicid <", value, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidLessThanOrEqualTo(Integer value) {
            addCriterion("musicid <=", value, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidIn(List<Integer> values) {
            addCriterion("musicid in", values, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidNotIn(List<Integer> values) {
            addCriterion("musicid not in", values, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidBetween(Integer value1, Integer value2) {
            addCriterion("musicid between", value1, value2, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidNotBetween(Integer value1, Integer value2) {
            addCriterion("musicid not between", value1, value2, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusictitleIsNull() {
            addCriterion("musictitle is null");
            return (Criteria) this;
        }

        public Criteria andMusictitleIsNotNull() {
            addCriterion("musictitle is not null");
            return (Criteria) this;
        }

        public Criteria andMusictitleEqualTo(String value) {
            addCriterion("musictitle =", value, "musictitle");
            return (Criteria) this;
        }

        public Criteria andMusictitleNotEqualTo(String value) {
            addCriterion("musictitle <>", value, "musictitle");
            return (Criteria) this;
        }

        public Criteria andMusictitleGreaterThan(String value) {
            addCriterion("musictitle >", value, "musictitle");
            return (Criteria) this;
        }

        public Criteria andMusictitleGreaterThanOrEqualTo(String value) {
            addCriterion("musictitle >=", value, "musictitle");
            return (Criteria) this;
        }

        public Criteria andMusictitleLessThan(String value) {
            addCriterion("musictitle <", value, "musictitle");
            return (Criteria) this;
        }

        public Criteria andMusictitleLessThanOrEqualTo(String value) {
            addCriterion("musictitle <=", value, "musictitle");
            return (Criteria) this;
        }

        public Criteria andMusictitleLike(String value) {
            addCriterion("musictitle like", value, "musictitle");
            return (Criteria) this;
        }

        public Criteria andMusictitleNotLike(String value) {
            addCriterion("musictitle not like", value, "musictitle");
            return (Criteria) this;
        }

        public Criteria andMusictitleIn(List<String> values) {
            addCriterion("musictitle in", values, "musictitle");
            return (Criteria) this;
        }

        public Criteria andMusictitleNotIn(List<String> values) {
            addCriterion("musictitle not in", values, "musictitle");
            return (Criteria) this;
        }

        public Criteria andMusictitleBetween(String value1, String value2) {
            addCriterion("musictitle between", value1, value2, "musictitle");
            return (Criteria) this;
        }

        public Criteria andMusictitleNotBetween(String value1, String value2) {
            addCriterion("musictitle not between", value1, value2, "musictitle");
            return (Criteria) this;
        }

        public Criteria andMusictextIsNull() {
            addCriterion("musictext is null");
            return (Criteria) this;
        }

        public Criteria andMusictextIsNotNull() {
            addCriterion("musictext is not null");
            return (Criteria) this;
        }

        public Criteria andMusictextEqualTo(String value) {
            addCriterion("musictext =", value, "musictext");
            return (Criteria) this;
        }

        public Criteria andMusictextNotEqualTo(String value) {
            addCriterion("musictext <>", value, "musictext");
            return (Criteria) this;
        }

        public Criteria andMusictextGreaterThan(String value) {
            addCriterion("musictext >", value, "musictext");
            return (Criteria) this;
        }

        public Criteria andMusictextGreaterThanOrEqualTo(String value) {
            addCriterion("musictext >=", value, "musictext");
            return (Criteria) this;
        }

        public Criteria andMusictextLessThan(String value) {
            addCriterion("musictext <", value, "musictext");
            return (Criteria) this;
        }

        public Criteria andMusictextLessThanOrEqualTo(String value) {
            addCriterion("musictext <=", value, "musictext");
            return (Criteria) this;
        }

        public Criteria andMusictextLike(String value) {
            addCriterion("musictext like", value, "musictext");
            return (Criteria) this;
        }

        public Criteria andMusictextNotLike(String value) {
            addCriterion("musictext not like", value, "musictext");
            return (Criteria) this;
        }

        public Criteria andMusictextIn(List<String> values) {
            addCriterion("musictext in", values, "musictext");
            return (Criteria) this;
        }

        public Criteria andMusictextNotIn(List<String> values) {
            addCriterion("musictext not in", values, "musictext");
            return (Criteria) this;
        }

        public Criteria andMusictextBetween(String value1, String value2) {
            addCriterion("musictext between", value1, value2, "musictext");
            return (Criteria) this;
        }

        public Criteria andMusictextNotBetween(String value1, String value2) {
            addCriterion("musictext not between", value1, value2, "musictext");
            return (Criteria) this;
        }

        public Criteria andMusicnameIsNull() {
            addCriterion("musicname is null");
            return (Criteria) this;
        }

        public Criteria andMusicnameIsNotNull() {
            addCriterion("musicname is not null");
            return (Criteria) this;
        }

        public Criteria andMusicnameEqualTo(String value) {
            addCriterion("musicname =", value, "musicname");
            return (Criteria) this;
        }

        public Criteria andMusicnameNotEqualTo(String value) {
            addCriterion("musicname <>", value, "musicname");
            return (Criteria) this;
        }

        public Criteria andMusicnameGreaterThan(String value) {
            addCriterion("musicname >", value, "musicname");
            return (Criteria) this;
        }

        public Criteria andMusicnameGreaterThanOrEqualTo(String value) {
            addCriterion("musicname >=", value, "musicname");
            return (Criteria) this;
        }

        public Criteria andMusicnameLessThan(String value) {
            addCriterion("musicname <", value, "musicname");
            return (Criteria) this;
        }

        public Criteria andMusicnameLessThanOrEqualTo(String value) {
            addCriterion("musicname <=", value, "musicname");
            return (Criteria) this;
        }

        public Criteria andMusicnameLike(String value) {
            addCriterion("musicname like", value, "musicname");
            return (Criteria) this;
        }

        public Criteria andMusicnameNotLike(String value) {
            addCriterion("musicname not like", value, "musicname");
            return (Criteria) this;
        }

        public Criteria andMusicnameIn(List<String> values) {
            addCriterion("musicname in", values, "musicname");
            return (Criteria) this;
        }

        public Criteria andMusicnameNotIn(List<String> values) {
            addCriterion("musicname not in", values, "musicname");
            return (Criteria) this;
        }

        public Criteria andMusicnameBetween(String value1, String value2) {
            addCriterion("musicname between", value1, value2, "musicname");
            return (Criteria) this;
        }

        public Criteria andMusicnameNotBetween(String value1, String value2) {
            addCriterion("musicname not between", value1, value2, "musicname");
            return (Criteria) this;
        }

        public Criteria andMusicphotoIsNull() {
            addCriterion("musicphoto is null");
            return (Criteria) this;
        }

        public Criteria andMusicphotoIsNotNull() {
            addCriterion("musicphoto is not null");
            return (Criteria) this;
        }

        public Criteria andMusicphotoEqualTo(String value) {
            addCriterion("musicphoto =", value, "musicphoto");
            return (Criteria) this;
        }

        public Criteria andMusicphotoNotEqualTo(String value) {
            addCriterion("musicphoto <>", value, "musicphoto");
            return (Criteria) this;
        }

        public Criteria andMusicphotoGreaterThan(String value) {
            addCriterion("musicphoto >", value, "musicphoto");
            return (Criteria) this;
        }

        public Criteria andMusicphotoGreaterThanOrEqualTo(String value) {
            addCriterion("musicphoto >=", value, "musicphoto");
            return (Criteria) this;
        }

        public Criteria andMusicphotoLessThan(String value) {
            addCriterion("musicphoto <", value, "musicphoto");
            return (Criteria) this;
        }

        public Criteria andMusicphotoLessThanOrEqualTo(String value) {
            addCriterion("musicphoto <=", value, "musicphoto");
            return (Criteria) this;
        }

        public Criteria andMusicphotoLike(String value) {
            addCriterion("musicphoto like", value, "musicphoto");
            return (Criteria) this;
        }

        public Criteria andMusicphotoNotLike(String value) {
            addCriterion("musicphoto not like", value, "musicphoto");
            return (Criteria) this;
        }

        public Criteria andMusicphotoIn(List<String> values) {
            addCriterion("musicphoto in", values, "musicphoto");
            return (Criteria) this;
        }

        public Criteria andMusicphotoNotIn(List<String> values) {
            addCriterion("musicphoto not in", values, "musicphoto");
            return (Criteria) this;
        }

        public Criteria andMusicphotoBetween(String value1, String value2) {
            addCriterion("musicphoto between", value1, value2, "musicphoto");
            return (Criteria) this;
        }

        public Criteria andMusicphotoNotBetween(String value1, String value2) {
            addCriterion("musicphoto not between", value1, value2, "musicphoto");
            return (Criteria) this;
        }

        public Criteria andMusicdateIsNull() {
            addCriterion("musicdate is null");
            return (Criteria) this;
        }

        public Criteria andMusicdateIsNotNull() {
            addCriterion("musicdate is not null");
            return (Criteria) this;
        }

        public Criteria andMusicdateEqualTo(Date value) {
            addCriterionForJDBCDate("musicdate =", value, "musicdate");
            return (Criteria) this;
        }

        public Criteria andMusicdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("musicdate <>", value, "musicdate");
            return (Criteria) this;
        }

        public Criteria andMusicdateGreaterThan(Date value) {
            addCriterionForJDBCDate("musicdate >", value, "musicdate");
            return (Criteria) this;
        }

        public Criteria andMusicdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("musicdate >=", value, "musicdate");
            return (Criteria) this;
        }

        public Criteria andMusicdateLessThan(Date value) {
            addCriterionForJDBCDate("musicdate <", value, "musicdate");
            return (Criteria) this;
        }

        public Criteria andMusicdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("musicdate <=", value, "musicdate");
            return (Criteria) this;
        }

        public Criteria andMusicdateIn(List<Date> values) {
            addCriterionForJDBCDate("musicdate in", values, "musicdate");
            return (Criteria) this;
        }

        public Criteria andMusicdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("musicdate not in", values, "musicdate");
            return (Criteria) this;
        }

        public Criteria andMusicdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("musicdate between", value1, value2, "musicdate");
            return (Criteria) this;
        }

        public Criteria andMusicdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("musicdate not between", value1, value2, "musicdate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}